package com.yanh.product.service.impl;

import com.alibaba.fastjson.TypeReference;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.baomidou.mybatisplus.extension.toolkit.Db;
import com.yanh.product.dao.SkuInfoDao;
import com.yanh.product.entity.SkuInfoEntity;
import com.yanh.product.service.SkuInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.stream.Collectors;


@Service("skuInfoService")
public class SkuInfoServiceImpl extends ServiceImpl<SkuInfoDao, SkuInfoEntity> implements SkuInfoService {


    @Override
    public List<SkuInfoEntity> getSkuInfoList(List<Long> skuIds) {
        List<SkuInfoEntity> result= Db.lambdaQuery(SkuInfoEntity.class).in(SkuInfoEntity::getSkuId,skuIds).list();
        return result;
    }
}